/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 设备检修结果Entity
 *
 * @author panda
 * @version 2017-12-02
 */
public class DevchkAnswer extends DataEntity<DevchkAnswer> {

    private static final long serialVersionUID = 1L;
    private String answerType;        // 回答类型

    public DevchkAnswer() {
        super();
    }

    public DevchkAnswer(String id) {
        super(id);
    }

    @Length(min = 0, max = 10, message = "回答类型长度必须介于 0 和 10 之间")
    public String getAnswerType() {
        return answerType;
    }

    public void setAnswerType(String answerType) {
        this.answerType = answerType;
    }

    public enum AnswerType {
        //		单选，多选，文本，数值
        SINGLE, MULTI, TEXT, NUMBER;
    }

}